package com.yida.gwj.vote.domain.vo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.Valid;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * @author lqq
 * @date 2023-03-13
 */
@ApiModel("投票项目项请求")
public class GwjVoteItemVo implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty("项序列")
	private String itemId;

	@ApiModelProperty("项名称")
	@NotBlank(message = "项名称不能为空")
	private String itemName;

	@ApiModelProperty("项排序")
	@NotNull(message = "项排序不能为空")
	private String itemSort;

	@ApiModelProperty("项类型")
	@NotNull(message = "项类型不能为空")
	private String itemType;

	@Valid
	@ApiModelProperty("项选项集合")
	@NotEmpty(message = "项选项集合不能为空")
	private List<GwjVoteOptionVo> content;

	@ApiModelProperty("是否有做选择")
	private String selectFlag;

	public String getSelectFlag() {
		return selectFlag;
	}

	public void setSelectFlag(String selectFlag) {
		this.selectFlag = selectFlag;
	}

	public String getItemId() {
		return itemId;
	}

	public void setItemId(String itemId) {
		this.itemId = itemId;
	}

	public String getItemName() {
		return itemName;
	}

	public void setItemName(String itemName) {
		this.itemName = itemName;
	}

	public String getItemSort() {
		return itemSort;
	}

	public void setItemSort(String itemSort) {
		this.itemSort = itemSort;
	}

	public String getItemType() {
		return itemType;
	}

	public void setItemType(String itemType) {
		this.itemType = itemType;
	}

	public List<GwjVoteOptionVo> getContent() {
		return content;
	}

	public void setContent(List<GwjVoteOptionVo> content) {
		this.content = content;
	}

	@Override
	public String toString() {
		final StringBuffer sb = new StringBuffer("VoteItemRequest{");
		sb.append("itemId=").append(itemId);
		sb.append(", itemName='").append(itemName).append('\'');
		sb.append(", itemSort=").append(itemSort);
		sb.append(", itemType=").append(itemType);
		sb.append(", content=").append(content);
		sb.append('}');
		return sb.toString();
	}
}
